package com.qiqv.code.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface AccountMapper {
    @Update("update account set total = total + #{count} where uid = #{uid}")
    void plus(@Param("uid") Integer uid, @Param("count") Double count);
    @Update("update account set total = total - #{count} where uid = #{uid}")
    void minus(@Param("uid")Integer userId, @Param("count")Double count);
}
